<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>阿坤,冲鸭</title>
    <style>
        .box {
            width: 482px;
            height: 24px;
            margin-left: 1040px;
            margin-top: 15px;
            line-height: 24px;
            font-size: 15px;
          
        }
        a {
            color: black;
            font-weight: bold;
        }
        .box1 {
            background-color:deepskyblue;
        }
        .box3 {
            width: 400px;
            height: 200px;
            display: block;
            margin: 0px auto;
            }
        input {
            
            width: 600px;
            height: 30px;
            
            margin-left: 400px;
        }
        .box4 {
            width: 80px;
            height: 36px;
            background-color: cornflowerblue;   
        }
        body,ul{
			margin:0;
			padding:0;
		}

		.list_con{
			
			width:1000px;
			height:200px;
			border:1px solid #000;
			margin:10px auto 0;
			background-color:#f0f0f0;
			position:relative;
			overflow:hidden;
		}

		.list_con ul{
			list-style:none;
			width:2000px;
			height:200px;
			position:absolute;
			left:0;
			top:0;
		}


		.list_con li{
			width:180px;
			height:180px;
			float:left;
			margin:10px;
		}
        .btns_con{
			width:1000px;
			height:30px;
			margin:50px auto 0;
			position:relative;
		}
        .left,.right{
			width:30px;
			height:30px;
			background-color:gold;
			position:absolute;
			left:-40px;
			top:124px;
			font-size:30px;
			line-height:30px;
			color:#000;
			font-family: 'Arial';
			text-align:center;
			cursor:pointer;
			border-radius:15px;
			opacity:0.5;
		}
		.right{
			left:1010px;			
			top:124px;			
		}
		
    </style>
    <script>
        window.onload = function () {
			var ul = document.getElementById('list')
			var but01 = document.getElementById('btn01')
			var but02 = document.getElementById('btn02')
			var time = setInterval(func,220)

			ul.innerHTML = ul.innerHTML + ul.innerHTML
			
			left = 0
			num = 10
			function func () {
				left += num
				
				if (left > 0) {
					left = -1000
				}
				 else if (left < -1000) {
					
					left = 0
					
				}
				
				ul.style.left = left + 'px'
			}
			but01.onclick = function () {
				num = -20
			}
			but02.onclick = function () {
				num = 20
			}
			ul.onmouseover = function () {
				abc = num
				num = 0
			}
			ul.onmouseout = function () {
				
				num = abc
				
			}
		}
    </script>
</head>
<body>
    <div class='box'>
        <a href="#">新闻</a>&nbsp;&nbsp;&nbsp;
        <a href="#">hao123</a>&nbsp;&nbsp;&nbsp;
        <a href="#">地图</a>&nbsp;&nbsp;&nbsp;
        <a href="#">视频</a>&nbsp;&nbsp;&nbsp;
        <a href="#">贴吧</a>&nbsp;&nbsp;&nbsp;
        <a href="#">学术</a>&nbsp;&nbsp;&nbsp;
        <a href="#">登录</a>&nbsp;&nbsp;&nbsp;
        <a href="#">设置</a>&nbsp;&nbsp;&nbsp;
        <a href="#" class='box1'>更多产品</a>
    </div>
    
    <img src="images/bd_logo1.png" alt="百度" class='box3'>
    
    <input type="text">
    <button class='box4'>百度一下</button>
    <div class="btns_con">
            <div class="left" id="btn01">&lt;</div>
            <div class="right" id="btn02">&gt;</div>
        </div>
    <div class="list_con" id="slide">
            <ul id="list">
                <li><a href=""><img src="images/yoona1.jpg" alt="商品图片"></a></li>
                <li><a href=""><img src="images/yoona2.jpg" alt="商品图片"></a></li>
                <li><a href=""><img src="images/yoona3.jpg" alt="商品图片"></a></li>
                <li><a href=""><img src="images/yoona4.jpg" alt="商品图片"></a></li>
                <li><a href=""><img src="images/yoona5.jpg" alt="商品图片"></a></li>
            </ul>
        </div>
    
    
</body>
</html>
</html>